﻿using BCCommon;
using BCDto.OA.BusinessFlowModel.BusinessFlowStepModel;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.OA.BusinessFlowModel.BusinessFlowStepModel
{
    /// <summary>
    /// OA系统业务流步骤模型
    /// </summary>
	public interface IBusinessFlowStepModelService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="businessFlowStepModelId">OA系统业务流步骤模型Id</param>
        bool Exists(long businessFlowStepModelId);
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="businessFlowStepModelCode">OA系统业务流步骤模型编码</param>
        bool Exists(string businessFlowStepModelCode);
        /// <summary>
        /// 添加OA系统业务流步骤模型
        /// </summary>
        /// <param name="requestDto">OA系统业务流步骤模型信息</param>
        BusinessFlowStepModelDto Add(BusinessFlowStepModelRequestDto requestDto);
        /// <summary>
        /// 更新OA系统业务流步骤模型
        /// </summary>
        /// <param name="putDto">OA系统业务流步骤模型信息</param>
        BusinessFlowStepModelDto Update(BusinessFlowStepModelPutDto putDto);
        /// <summary>
        /// 删除OA系统业务流步骤模型
        /// </summary>
        /// <param name="businessFlowStepModelId">OA系统业务流步骤模型Id</param>
        bool Delete(long businessFlowStepModelId);
        /// <summary>
        /// 获取OA系统业务流步骤模型
        /// </summary>
        /// <param name="businessFlowStepModelId">OA系统业务流步骤模型Id</param>
        BusinessFlowStepModelDto GetEntity(long businessFlowStepModelId);
        /// <summary>
        /// 获取OA系统业务流步骤模型列表
        /// </summary>
        /// <param name="businessFlowModelId">业务流模型Id</param>
        IEnumerable<BusinessFlowStepModelDto> GetList(long businessFlowModelId);
        /// <summary>
        /// 获取OA系统业务流步骤模型分页列表
        /// </summary>
        /// <param name="businessFlowModelId">业务流模型Id</param>
        /// <param name="businessFlowStepModelName">OA系统业务流步骤模型名称</param>
        /// <param name="businessFlowModelName">业务流模型名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统业务流步骤模型每页数据条数</param>
        PageableList<BusinessFlowStepModelDto> Query(long? businessFlowModelId,string businessFlowStepModelName, string businessFlowModelName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
